<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Repetier-Firmware: src/ArduinoAVR/Repetier/Repetier.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="repetier-logo-trans128.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">0.91</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_repetier_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">src/ArduinoAVR/Repetier/Repetier.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_repetier_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    This file is part of Repetier-Firmware.</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    Repetier-Firmware is free software: you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">    the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">    (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">    Repetier-Firmware is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">    along with Repetier-Firmware.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">    This firmware is a nearly complete rewrite of the sprinter firmware</span>
<a name="l00018"></a>00018 <span class="comment">    by kliment (https://github.com/kliment/Sprinter)</span>
<a name="l00019"></a>00019 <span class="comment">    which based on Tonokip RepRap firmware rewrite based off of Hydra-mmm firmware.</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _REPETIER_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _REPETIER_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a><a class="code" href="_repetier_8h.html#a8adf65934f3576c6ff15578f1a162b3f">00025</a> <span class="preprocessor">#define REPETIER_VERSION &quot;0.91&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="comment">// ##########################################################################################</span>
<a name="l00028"></a>00028 <span class="comment">// ##                                  Debug configuration                                 ##</span>
<a name="l00029"></a>00029 <span class="comment">// ##########################################################################################</span>
<a name="l00030"></a>00030 
<a name="l00032"></a>00032 <span class="comment">//#define DEBUG_QUEUE_MOVE</span>
<a name="l00035"></a><a class="code" href="_repetier_8h.html#a77e164a49bf252fcb13d3bfbde4f7360">00035</a> <span class="comment"></span><span class="preprocessor">#define INCLUDE_DEBUG_COMMUNICATION</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00038"></a><a class="code" href="_repetier_8h.html#ad512cb595c1b9726414ad6f3b4c7d57a">00038</a> <span class="preprocessor">#define INCLUDE_DEBUG_NO_MOVE</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="comment">//#define DEBUG_FREE_MEMORY</span>
<a name="l00043"></a>00043 <span class="comment">//#define DEBUG_ADVANCE</span>
<a name="l00045"></a>00045 <span class="comment"></span><span class="comment">//#define DEBUG_OPS</span>
<a name="l00047"></a>00047 <span class="comment"></span><span class="comment">//#define DEBUG_GENERIC</span>
<a name="l00049"></a>00049 <span class="comment"></span><span class="comment">//#define DEBUG_STEPCOUNT</span>
<a name="l00051"></a><a class="code" href="_repetier_8h.html#a8b87c57d8e5135553897081f6feeef9c">00051</a> <span class="comment"></span><span class="preprocessor">#define DEBUG_COM_ERRORS</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="comment">//#define DEBUG_DELTA_OVERFLOW</span>
<a name="l00053"></a>00053 <span class="comment">// Add write debug to quicksettings menu to debug some vars during hang</span>
<a name="l00054"></a>00054 <span class="comment">//#define DEBUG_PRINT</span>
<a name="l00055"></a>00055 <span class="comment">//#define DEBUG_SPLIT</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="comment">// Uncomment the following line to enable debugging. You can better control debugging below the following line</span>
<a name="l00058"></a>00058 <span class="comment">//#define DEBUG</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="comment">// Uncomment if no analyzer is connected</span>
<a name="l00062"></a>00062 <span class="comment">//#define ANALYZER</span>
<a name="l00063"></a>00063 <span class="comment">// Channel-&gt;pin assignments</span>
<a name="l00064"></a><a class="code" href="_repetier_8h.html#a5298b74d1c17dd4fdb7edd7ecc762990">00064</a> <span class="preprocessor">#define ANALYZER_CH0 63 // New move</span>
<a name="l00065"></a><a class="code" href="_repetier_8h.html#aac2c3585d83addff66e2015e741d0c99">00065</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH1 40 // Step loop</span>
<a name="l00066"></a><a class="code" href="_repetier_8h.html#af2973fcf8425b4a4c4752a52c6713c8f">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH2 53 // X Step</span>
<a name="l00067"></a><a class="code" href="_repetier_8h.html#a82feee50d46677c33675d367b1a85af2">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH3 65 // Y Step</span>
<a name="l00068"></a><a class="code" href="_repetier_8h.html#a6cbe32a87c3f0df036986af2333fc9e7">00068</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH4 59 // X Direction</span>
<a name="l00069"></a><a class="code" href="_repetier_8h.html#a01bd63846b5dd6859c16b11e6435b413">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH5 64 // Y Direction</span>
<a name="l00070"></a><a class="code" href="_repetier_8h.html#ad0a2eedb5774ac5a46b3c4275126b815">00070</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH6 58 // xsig</span>
<a name="l00071"></a><a class="code" href="_repetier_8h.html#a62ce8e11506218f41528a9059d4ce83a">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_CH7 57 // ysig</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span>
<a name="l00073"></a>00073 <span class="preprocessor">#ifdef ANALYZER</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_ON(a) {WRITE(a,HIGH);}</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_OFF(a) {WRITE(a,LOW);}</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00077"></a><a class="code" href="_repetier_8h.html#a3c648c7bfb447c81831559d893ccc8b7">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_ON(a)</span>
<a name="l00078"></a><a class="code" href="_repetier_8h.html#a3ce49d11930e4fbd232c0f8ad2e036b2">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALYZER_OFF(a)</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>
<a name="l00081"></a><a class="code" href="_repetier_8h.html#a096f6d223bb5d11bebd9ce7535508fa2">00081</a> <span class="preprocessor">#define X_AXIS 0</span>
<a name="l00082"></a><a class="code" href="_repetier_8h.html#ab9e30cc0a88c208dc662906171bb8265">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define Y_AXIS 1</span>
<a name="l00083"></a><a class="code" href="_repetier_8h.html#a702b4b323c595211ec77a5995d9ee155">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define Z_AXIS 2</span>
<a name="l00084"></a><a class="code" href="_repetier_8h.html#a43ee3a98156e221a0556a4cd4ae09a72">00084</a> <span class="preprocessor"></span><span class="preprocessor">#define E_AXIS 3</span>
<a name="l00085"></a><a class="code" href="_repetier_8h.html#a05a3e3857a0cb355c18cc6b54f9b49e6">00085</a> <span class="preprocessor"></span><span class="preprocessor">#define VIRTUAL_AXIS 4</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span>
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="comment">// Bits of the ADC converter</span>
<a name="l00089"></a><a class="code" href="_repetier_8h.html#a1972fe1bfaa6fb52001d04fc1059e3ad">00089</a> <span class="preprocessor">#define ANALOG_INPUT_BITS 10</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="comment">// Build median from 2^ANALOG_INPUT_SAMPLE samples</span>
<a name="l00091"></a><a class="code" href="_repetier_8h.html#aae780ad1da65e93031c8819fa64c133e">00091</a> <span class="preprocessor">#define ANALOG_INPUT_SAMPLE 5</span>
<a name="l00092"></a><a class="code" href="_repetier_8h.html#ada2f40f8c390192e11c232c758afcb57">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALOG_REF_AREF 0</span>
<a name="l00093"></a><a class="code" href="_repetier_8h.html#ac4969cdff62b814d6be75510e4fd1f46">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALOG_REF_AVCC _BV(REFS0)</span>
<a name="l00094"></a><a class="code" href="_repetier_8h.html#a1e9dea4096b6f1e3d0c3416ad4902370">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALOG_REF_INT_1_1 _BV(REFS1)</span>
<a name="l00095"></a><a class="code" href="_repetier_8h.html#a3edc5729832b16c40d5df64fbfba0098">00095</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALOG_REF_INT_2_56 _BV(REFS0) | _BV(REFS1)</span>
<a name="l00096"></a><a class="code" href="_repetier_8h.html#af5eb7e3dc57a2c282b06f32e51970839">00096</a> <span class="preprocessor"></span><span class="preprocessor">#define ANALOG_REF ANALOG_REF_AVCC</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span>
<a name="l00098"></a>00098 <span class="comment">// MS1 MS2 Stepper Driver Microstepping mode table</span>
<a name="l00099"></a><a class="code" href="_repetier_8h.html#ae4a18425a9380f922180002e116f5b59">00099</a> <span class="preprocessor">#define MICROSTEP1 LOW,LOW</span>
<a name="l00100"></a><a class="code" href="_repetier_8h.html#a530d5aeb26ecda2a4a2b5fc1a2106b6d">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define MICROSTEP2 HIGH,LOW</span>
<a name="l00101"></a><a class="code" href="_repetier_8h.html#ac5d700f5a37992e5569490480147a12d">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define MICROSTEP4 LOW,HIGH</span>
<a name="l00102"></a><a class="code" href="_repetier_8h.html#a6a739edfdfab19f389281fe006f2b1d8">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define MICROSTEP8 HIGH,HIGH</span>
<a name="l00103"></a><a class="code" href="_repetier_8h.html#a5a4feee49d4cb0044aad9b8df35d10e8">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define MICROSTEP16 HIGH,HIGH</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a><a class="code" href="_repetier_8h.html#ae71f787b42e8b39a92283fb4bd02fca4">00105</a> <span class="preprocessor">#define HOME_ORDER_XYZ 1</span>
<a name="l00106"></a><a class="code" href="_repetier_8h.html#acaa69567e5e964777590ff2e64c11136">00106</a> <span class="preprocessor"></span><span class="preprocessor">#define HOME_ORDER_XZY 2</span>
<a name="l00107"></a><a class="code" href="_repetier_8h.html#a958d049e076cbb9d354183df8078a64a">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define HOME_ORDER_YXZ 3</span>
<a name="l00108"></a><a class="code" href="_repetier_8h.html#a9feb54edc2ae0621184d30a99c709999">00108</a> <span class="preprocessor"></span><span class="preprocessor">#define HOME_ORDER_YZX 4</span>
<a name="l00109"></a><a class="code" href="_repetier_8h.html#a7a9e1a33c1089feef3d2a46f8dea8758">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define HOME_ORDER_ZXY 5</span>
<a name="l00110"></a><a class="code" href="_repetier_8h.html#a7162f95ed4e3656fb650598f0bfb84d8">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define HOME_ORDER_ZYX 6</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00112"></a><a class="code" href="_repetier_8h.html#af348f6d0d21ffcb39ae86cb2e2188999">00112</a> <span class="preprocessor">#define TEMP_PID true // add pid control</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="preprocessor">#include &quot;<a class="code" href="_configuration_8h.html">Configuration.h</a>&quot;</span>
<a name="l00116"></a>00116 
<a name="l00117"></a><a class="code" href="_repetier_8h.html#a73708ff09bb1146a609cf387ec0abb40">00117</a> <span class="preprocessor">#define SPEED_MIN_MILLIS 300</span>
<a name="l00118"></a><a class="code" href="_repetier_8h.html#ac71536ab59d4ae217590e9e2bb70ef06">00118</a> <span class="preprocessor"></span><span class="preprocessor">#define SPEED_MAX_MILLIS 50</span>
<a name="l00119"></a><a class="code" href="_repetier_8h.html#af6775b549e42844b7fa0dae6a6b26dbc">00119</a> <span class="preprocessor"></span><span class="preprocessor">#define SPEED_MAGNIFICATION 100.0f</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>
<a name="l00121"></a>00121 <span class="preprocessor">#ifndef UI_SPEEDDEPENDENT_POSITIONING</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#define UI_SPEEDDEPENDENT_POSITIONING true</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span>
<a name="l00125"></a>00125 <span class="preprocessor">#if DRIVE_SYSTEM==3 || DRIVE_SYSTEM==4</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#define NONLINEAR_SYSTEM true</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00128"></a><a class="code" href="_repetier_8h.html#aa26cdbbda98588e6988b4d05a388e28a">00128</a> <span class="preprocessor"></span><span class="preprocessor">#define NONLINEAR_SYSTEM false</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span>
<a name="l00131"></a>00131 <span class="preprocessor">#ifdef FEATURE_Z_PROBE</span>
<a name="l00132"></a><a class="code" href="_repetier_8h.html#afe671b627b7b8f5f2971605e80d05740">00132</a> <span class="preprocessor"></span><span class="preprocessor">#define MANUAL_CONTROL true</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00135"></a>00135 <span class="preprocessor">#if DRIVE_SYSTEM==1 || DRIVE_SYSTEM==2</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#define XY_GANTRY</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span>
<a name="l00139"></a>00139 <span class="comment">//Step to split a cirrcle in small Lines</span>
<a name="l00140"></a>00140 <span class="preprocessor">#ifndef MM_PER_ARC_SEGMENT</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#define MM_PER_ARC_SEGMENT 1</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#define MM_PER_ARC_SEGMENT_BIG 3</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00144"></a><a class="code" href="_repetier_8h.html#a6ae697d20acb6ce5e8a6419caba282ea">00144</a> <span class="preprocessor"></span><span class="preprocessor">#define MM_PER_ARC_SEGMENT_BIG MM_PER_ARC_SEGMENT</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span><span class="comment">//After this count of steps a new SIN / COS caluclation is startet to correct the circle interpolation</span>
<a name="l00147"></a><a class="code" href="_repetier_8h.html#aece6997190f51cd83a9870f00c7818cd">00147</a> <span class="preprocessor">#define N_ARC_CORRECTION 25</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span>
<a name="l00149"></a>00149 <span class="preprocessor">#if NUM_EXTRUDER&gt;0 &amp;&amp; EXT0_TEMPSENSOR_TYPE&lt;101</span>
<a name="l00150"></a><a class="code" href="_repetier_8h.html#a78ddabb3146674f91a7c99c94f33e115">00150</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT0_ANALOG_INPUTS 1</span>
<a name="l00151"></a><a class="code" href="_repetier_8h.html#a63db9e0d133efdc02c1ae1aa5ab79b97">00151</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT0_SENSOR_INDEX 0</span>
<a name="l00152"></a><a class="code" href="_repetier_8h.html#aa527bf5972c8a4589a678c648cf816fc">00152</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT0_ANALOG_CHANNEL EXT0_TEMPSENSOR_PIN</span>
<a name="l00153"></a><a class="code" href="_repetier_8h.html#a185008e46a2795212d1deb690290103b">00153</a> <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA0 ,</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00155"></a>00155 <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA0</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="preprocessor">#define EXT0_ANALOG_INPUTS 0</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span><span class="preprocessor">#define EXT0_SENSOR_INDEX EXT0_TEMPSENSOR_PIN</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor">#define EXT0_ANALOG_CHANNEL</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00160"></a>00160 <span class="preprocessor"></span>
<a name="l00161"></a>00161 <span class="preprocessor">#if NUM_EXTRUDER&gt;1 &amp;&amp; EXT1_TEMPSENSOR_TYPE&lt;101</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span><span class="preprocessor">#define EXT1_ANALOG_INPUTS 1</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span><span class="preprocessor">#define EXT1_SENSOR_INDEX EXT0_ANALOG_INPUTS</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span><span class="preprocessor">#define EXT1_ANALOG_CHANNEL ACCOMMA0 EXT1_TEMPSENSOR_PIN</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA1 ,</span>
<a name="l00166"></a>00166 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00167"></a><a class="code" href="_repetier_8h.html#ab1665538bd65868e6b3f10106b1978fc">00167</a> <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA1 ACCOMMA0</span>
<a name="l00168"></a><a class="code" href="_repetier_8h.html#af1dc5d29050e54a592901f38c30adc89">00168</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT1_ANALOG_INPUTS 0</span>
<a name="l00169"></a><a class="code" href="_repetier_8h.html#ad586e399d95f53fb77894d5559fc98af">00169</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT1_SENSOR_INDEX EXT1_TEMPSENSOR_PIN</span>
<a name="l00170"></a><a class="code" href="_repetier_8h.html#aa6096f271e1e2c4efebb2cf5047663b0">00170</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT1_ANALOG_CHANNEL</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span>
<a name="l00173"></a>00173 <span class="preprocessor">#if NUM_EXTRUDER&gt;2 &amp;&amp; EXT2_TEMPSENSOR_TYPE&lt;101</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span><span class="preprocessor">#define EXT2_ANALOG_INPUTS 1</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span><span class="preprocessor">#define EXT2_SENSOR_INDEX EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span><span class="preprocessor">#define EXT2_ANALOG_CHANNEL ACCOMMA1 EXT2_TEMPSENSOR_PIN</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA2 ,</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00179"></a><a class="code" href="_repetier_8h.html#a255b4df2230f4460f0fa0eb270037971">00179</a> <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA2 ACCOMMA1</span>
<a name="l00180"></a><a class="code" href="_repetier_8h.html#a4a7420cae60dab14fec906322a32f887">00180</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT2_ANALOG_INPUTS 0</span>
<a name="l00181"></a><a class="code" href="_repetier_8h.html#a079d670b702e239709487e60e9f02d47">00181</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT2_SENSOR_INDEX EXT2_TEMPSENSOR_PIN</span>
<a name="l00182"></a><a class="code" href="_repetier_8h.html#af612af5d0c783a148c326089d313f4eb">00182</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT2_ANALOG_CHANNEL</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a>00185 <span class="preprocessor">#if NUM_EXTRUDER&gt;3 &amp;&amp; EXT3_TEMPSENSOR_TYPE&lt;101</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span><span class="preprocessor">#define EXT3_ANALOG_INPUTS 1</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor">#define EXT3_SENSOR_INDEX EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS+EXT2_ANALOG_INPUTS</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span><span class="preprocessor">#define EXT3_ANALOG_CHANNEL ACCOMMA2 EXT3_TEMPSENSOR_PIN</span>
<a name="l00189"></a>00189 <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA3 ,</span>
<a name="l00190"></a>00190 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00191"></a><a class="code" href="_repetier_8h.html#a3633bb8132f7ffbec4cca86806bb0d9a">00191</a> <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA3 ACCOMMA2</span>
<a name="l00192"></a><a class="code" href="_repetier_8h.html#aeb355d86d7bf326da56152b5d63346e3">00192</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT3_ANALOG_INPUTS 0</span>
<a name="l00193"></a><a class="code" href="_repetier_8h.html#ae00a5a13929e118f0388d078e7d73a88">00193</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT3_SENSOR_INDEX EXT3_TEMPSENSOR_PIN</span>
<a name="l00194"></a><a class="code" href="_repetier_8h.html#ae4248c519e4d871cb2922e7716073a90">00194</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT3_ANALOG_CHANNEL</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00196"></a>00196 <span class="preprocessor"></span>
<a name="l00197"></a>00197 <span class="preprocessor">#if NUM_EXTRUDER&gt;4 &amp;&amp; EXT4_TEMPSENSOR_TYPE&lt;101</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span><span class="preprocessor">#define EXT4_ANALOG_INPUTS 1</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span><span class="preprocessor">#define EXT4_SENSOR_INDEX EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS+EXT2_ANALOG_INPUTS+EXT3_ANALOG_INPUTS</span>
<a name="l00200"></a>00200 <span class="preprocessor"></span><span class="preprocessor">#define EXT4_ANALOG_CHANNEL ACCOMMA3 EXT4_TEMPSENSOR_PIN</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA4 ,</span>
<a name="l00202"></a>00202 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00203"></a><a class="code" href="_repetier_8h.html#a7a969f356bfa51bcf4453d5afe31f7c9">00203</a> <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA4 ACCOMMA3</span>
<a name="l00204"></a><a class="code" href="_repetier_8h.html#abcf7e2c47a7781e44a2b11a4c25ac15b">00204</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT4_ANALOG_INPUTS 0</span>
<a name="l00205"></a><a class="code" href="_repetier_8h.html#a29e8b945105ba7c28a7028497013427e">00205</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT4_SENSOR_INDEX EXT4_TEMPSENSOR_PIN</span>
<a name="l00206"></a><a class="code" href="_repetier_8h.html#a88386c7ccad4ff8cbe91511cb66efb74">00206</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT4_ANALOG_CHANNEL</span>
<a name="l00207"></a>00207 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00208"></a>00208 <span class="preprocessor"></span>
<a name="l00209"></a>00209 <span class="preprocessor">#if NUM_EXTRUDER&gt;5 &amp;&amp; EXT5_TEMPSENSOR_TYPE&lt;101</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span><span class="preprocessor">#define EXT5_ANALOG_INPUTS 1</span>
<a name="l00211"></a>00211 <span class="preprocessor"></span><span class="preprocessor">#define EXT5_SENSOR_INDEX EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS+EXT2_ANALOG_INPUTS+EXT3_ANALOG_INPUTS+EXT4_ANALOG_INPUTS</span>
<a name="l00212"></a>00212 <span class="preprocessor"></span><span class="preprocessor">#define EXT5_ANALOG_CHANNEL ACCOMMA4 EXT5_TEMPSENSOR_PIN</span>
<a name="l00213"></a>00213 <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA5 ,</span>
<a name="l00214"></a>00214 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00215"></a><a class="code" href="_repetier_8h.html#a539e5b1dccbeb47c6f14926a61db4777">00215</a> <span class="preprocessor"></span><span class="preprocessor">#define ACCOMMA5 ACCOMMA4</span>
<a name="l00216"></a><a class="code" href="_repetier_8h.html#a44cdb7c10844c09d7dad88f1371899e6">00216</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT5_ANALOG_INPUTS 0</span>
<a name="l00217"></a><a class="code" href="_repetier_8h.html#aad3a8c81b889ce5bb8b36365a1a3d4f4">00217</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT5_SENSOR_INDEX EXT5_TEMPSENSOR_PIN</span>
<a name="l00218"></a><a class="code" href="_repetier_8h.html#a7f3a2301e20f6d00fb8680afac16fde5">00218</a> <span class="preprocessor"></span><span class="preprocessor">#define EXT5_ANALOG_CHANNEL</span>
<a name="l00219"></a>00219 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00220"></a>00220 <span class="preprocessor"></span>
<a name="l00221"></a>00221 <span class="preprocessor">#if HAVE_HEATED_BED==true &amp;&amp; HEATED_BED_SENSOR_TYPE&lt;101</span>
<a name="l00222"></a><a class="code" href="_repetier_8h.html#a2197052fdb52ee6cb71080acbff18949">00222</a> <span class="preprocessor"></span><span class="preprocessor">#define BED_ANALOG_INPUTS 1</span>
<a name="l00223"></a><a class="code" href="_repetier_8h.html#a4b3b31cb6cf54a97c49b17403d52b80e">00223</a> <span class="preprocessor"></span><span class="preprocessor">#define BED_SENSOR_INDEX EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS+EXT2_ANALOG_INPUTS+EXT3_ANALOG_INPUTS+EXT4_ANALOG_INPUTS+EXT5_ANALOG_INPUTS</span>
<a name="l00224"></a><a class="code" href="_repetier_8h.html#a677d80ece2e32e2207721a5711fb1b5c">00224</a> <span class="preprocessor"></span><span class="preprocessor">#define BED_ANALOG_CHANNEL ACCOMMA5 HEATED_BED_SENSOR_PIN</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor">#undef KOMMA</span>
<a name="l00226"></a><a class="code" href="_repetier_8h.html#a1259fffac78a7714b1f6410caf24916f">00226</a> <span class="preprocessor"></span><span class="preprocessor">#define KOMMA ,</span>
<a name="l00227"></a>00227 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span><span class="preprocessor">#define BED_ANALOG_INPUTS 0</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor">#define BED_SENSOR_INDEX HEATED_BED_SENSOR_PIN</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span><span class="preprocessor">#define BED_ANALOG_CHANNEL</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span>
<a name="l00233"></a>00233 <span class="preprocessor">#ifndef DEBUG_FREE_MEMORY</span>
<a name="l00234"></a><a class="code" href="_repetier_8h.html#aab69ceb22658e65eeacd26b5e35d855f">00234</a> <span class="preprocessor"></span><span class="preprocessor">#define DEBUG_MEMORY</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span><span class="preprocessor">#define DEBUG_MEMORY Commands::checkFreeMemory();</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span>
<a name="l00240"></a><a class="code" href="_repetier_8h.html#a4791bfa40258d27fa714fff6d8e62a30">00240</a> <span class="preprocessor">#define ANALOG_INPUTS (EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS+EXT2_ANALOG_INPUTS+EXT3_ANALOG_INPUTS+EXT4_ANALOG_INPUTS+EXT5_ANALOG_INPUTS+BED_ANALOG_INPUTS)</span>
<a name="l00241"></a>00241 <span class="preprocessor"></span><span class="preprocessor">#if ANALOG_INPUTS&gt;0</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>
<a name="l00243"></a><a class="code" href="_repetier_8h.html#a24a64a1f575248a06f4ba8689a578c3f">00243</a> <span class="preprocessor">#define  ANALOG_INPUT_CHANNELS {EXT0_ANALOG_CHANNEL EXT1_ANALOG_CHANNEL EXT2_ANALOG_CHANNEL EXT3_ANALOG_CHANNEL EXT4_ANALOG_CHANNEL EXT5_ANALOG_CHANNEL BED_ANALOG_CHANNEL}</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00245"></a>00245 <span class="preprocessor"></span>
<a name="l00246"></a><a class="code" href="_repetier_8h.html#a965a628ac06f6815452f8f5719cd86fb">00246</a> <span class="preprocessor">#define MENU_MODE_SD_MOUNTED 1</span>
<a name="l00247"></a><a class="code" href="_repetier_8h.html#ace5a0ed57fad83447abfa7e55c6e518e">00247</a> <span class="preprocessor"></span><span class="preprocessor">#define MENU_MODE_SD_PRINTING 2</span>
<a name="l00248"></a><a class="code" href="_repetier_8h.html#a7a146367cc179b4a4b0678bcc4eb405d">00248</a> <span class="preprocessor"></span><span class="preprocessor">#define MENU_MODE_SD_PAUSED 4</span>
<a name="l00249"></a><a class="code" href="_repetier_8h.html#a2cd09db1b62b1d5eac5233fe177032f1">00249</a> <span class="preprocessor"></span><span class="preprocessor">#define MENU_MODE_FAN_RUNNING 8</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>
<a name="l00251"></a>00251 <span class="preprocessor">#include &quot;<a class="code" href="_h_a_l_8h.html">HAL.h</a>&quot;</span>
<a name="l00252"></a>00252 <span class="preprocessor">#include &quot;<a class="code" href="gcode_8h.html">gcode.h</a>&quot;</span>
<a name="l00253"></a><a class="code" href="_repetier_8h.html#aadcc90f13b8195ce6f9b4d9f8113033f">00253</a> <span class="preprocessor">#define MAX_VFAT_ENTRIES (2)</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>
<a name="l00255"></a><a class="code" href="_repetier_8h.html#a44a03c09095315ecc8926e18c325472c">00255</a> <span class="preprocessor">#define LONG_FILENAME_LENGTH (13*MAX_VFAT_ENTRIES+1)</span>
<a name="l00256"></a><a class="code" href="_repetier_8h.html#a4f72bc2f610f4156f446d7cc00fab46c">00256</a> <span class="preprocessor"></span><span class="preprocessor">#define SD_MAX_FOLDER_DEPTH 2</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span>
<a name="l00258"></a>00258 <span class="preprocessor">#include &quot;<a class="code" href="ui_8h.html">ui.h</a>&quot;</span>
<a name="l00259"></a>00259 <span class="preprocessor">#include &quot;<a class="code" href="_communication_8h.html">Communication.h</a>&quot;</span>
<a name="l00260"></a>00260 
<a name="l00261"></a>00261 <span class="preprocessor">#ifndef SDSUPPORT</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span><span class="preprocessor">#define SDSUPPORT false</span>
<a name="l00263"></a>00263 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span><span class="preprocessor">#if SDSUPPORT</span>
<a name="l00265"></a>00265 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_sd_fat_8h.html" title="SdFat class.">SdFat.h</a>&quot;</span>
<a name="l00266"></a>00266 <span class="preprocessor">#endif</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor">#ifndef SDSUPPORT</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span><span class="preprocessor">#define SDSUPPORT false</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00270"></a>00270 <span class="preprocessor"></span><span class="preprocessor">#if SDSUPPORT</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_sd_fat_8h.html" title="SdFat class.">SdFat.h</a>&quot;</span>
<a name="l00272"></a>00272 <span class="preprocessor">#endif</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span>
<a name="l00274"></a>00274 <span class="preprocessor">#if ENABLE_BACKLASH_COMPENSATION &amp;&amp; DRIVE_SYSTEM!=0</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span><span class="preprocessor">#undef ENABLE_BACKLASH_COMPENSATION</span>
<a name="l00276"></a>00276 <span class="preprocessor"></span><span class="preprocessor">#define ENABLE_BACKLASH_COMPENSATION false</span>
<a name="l00277"></a>00277 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span>
<a name="l00279"></a><a class="code" href="_repetier_8h.html#ad46b2ebcd4c426b06cda147ddc1001e7">00279</a> <span class="preprocessor">#define uint uint16_t</span>
<a name="l00280"></a><a class="code" href="_repetier_8h.html#a2d25bcd37166cc98f0d823cdb8c553ef">00280</a> <span class="preprocessor"></span><span class="preprocessor">#define uint8 uint8_t</span>
<a name="l00281"></a><a class="code" href="_repetier_8h.html#a05dd69e54275d0ffb23aa062e522f72c">00281</a> <span class="preprocessor"></span><span class="preprocessor">#define int8 int8_t</span>
<a name="l00282"></a><a class="code" href="_repetier_8h.html#a9695cf1104606879c5d3f0221635a069">00282</a> <span class="preprocessor"></span><span class="preprocessor">#define uint32 uint32_t</span>
<a name="l00283"></a><a class="code" href="_repetier_8h.html#ae5125ea470cb5e419d49e07ad57eeba2">00283</a> <span class="preprocessor"></span><span class="preprocessor">#define int32 int32_t</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>
<a name="l00285"></a><a class="code" href="_repetier_8h.html#a51a5b301159df7d97803f02f5097e133">00285</a> <span class="preprocessor">#define IGNORE_COORDINATE 99999</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span>
<a name="l00287"></a>00287 <span class="preprocessor">#undef min</span>
<a name="l00288"></a>00288 <span class="preprocessor"></span><span class="preprocessor">#undef max</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span>
<a name="l00290"></a><a class="code" href="class_r_math.html">00290</a> <span class="keyword">class </span><a class="code" href="class_r_math.html">RMath</a> {
<a name="l00291"></a>00291 <span class="keyword">public</span>:
<a name="l00292"></a><a class="code" href="class_r_math.html#a0ab39f9cbf141700707689914d3a6769">00292</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="class_r_math.html#a0ab39f9cbf141700707689914d3a6769">min</a>(<span class="keywordtype">float</span> a,<span class="keywordtype">float</span> b) {
<a name="l00293"></a>00293         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> a;
<a name="l00294"></a>00294         <span class="keywordflow">return</span> b;
<a name="l00295"></a>00295     }
<a name="l00296"></a><a class="code" href="class_r_math.html#abac49478ea4c53e716470bf24f760d65">00296</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code" href="class_r_math.html#abac49478ea4c53e716470bf24f760d65">max</a>(<span class="keywordtype">float</span> a,<span class="keywordtype">float</span> b) {
<a name="l00297"></a>00297         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> b;
<a name="l00298"></a>00298         <span class="keywordflow">return</span> a;
<a name="l00299"></a>00299     }
<a name="l00300"></a><a class="code" href="class_r_math.html#aae78f234a48742ac10b1a231f771d809">00300</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="class_r_math.html#aae78f234a48742ac10b1a231f771d809">min</a>(<span class="keywordtype">long</span> a,<span class="keywordtype">long</span> b) {
<a name="l00301"></a>00301         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> a;
<a name="l00302"></a>00302         <span class="keywordflow">return</span> b;
<a name="l00303"></a>00303     }
<a name="l00304"></a><a class="code" href="class_r_math.html#a048ef06d98f1f926ccbec88d46bd55b0">00304</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="class_r_math.html#a048ef06d98f1f926ccbec88d46bd55b0">max</a>(<span class="keywordtype">long</span> a,<span class="keywordtype">long</span> b) {
<a name="l00305"></a>00305         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> b;
<a name="l00306"></a>00306         <span class="keywordflow">return</span> a;
<a name="l00307"></a>00307     }
<a name="l00308"></a><a class="code" href="class_r_math.html#a2f2bf96d77a187bd4446b4ba3864470d">00308</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="class_r_math.html#a2f2bf96d77a187bd4446b4ba3864470d">min</a>(<span class="keywordtype">int</span> a,<span class="keywordtype">int</span> b) {
<a name="l00309"></a>00309         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> a;
<a name="l00310"></a>00310         <span class="keywordflow">return</span> b;
<a name="l00311"></a>00311     }
<a name="l00312"></a><a class="code" href="class_r_math.html#aa5d960354774dc177393b360c0f90aa9">00312</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="class_r_math.html#aa5d960354774dc177393b360c0f90aa9">max</a>(<span class="keywordtype">int</span> a,<span class="keywordtype">int</span> b) {
<a name="l00313"></a>00313         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> b;
<a name="l00314"></a>00314         <span class="keywordflow">return</span> a;
<a name="l00315"></a>00315     }
<a name="l00316"></a><a class="code" href="class_r_math.html#a2c8b1cfa0a9557130c057fc4c8ad7e96">00316</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_r_math.html#a2c8b1cfa0a9557130c057fc4c8ad7e96">min</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> a,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> b) {
<a name="l00317"></a>00317         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> a;
<a name="l00318"></a>00318         <span class="keywordflow">return</span> b;
<a name="l00319"></a>00319     }
<a name="l00320"></a><a class="code" href="class_r_math.html#aa0136b6d9656d51323ec53ab10c13129">00320</a>     <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_r_math.html#aa0136b6d9656d51323ec53ab10c13129">max</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> a,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> b) {
<a name="l00321"></a>00321         <span class="keywordflow">if</span>(a&lt;b) <span class="keywordflow">return</span> b;
<a name="l00322"></a>00322         <span class="keywordflow">return</span> a;
<a name="l00323"></a>00323     }
<a name="l00324"></a>00324 };
<a name="l00325"></a>00325 
<a name="l00326"></a>00326 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="_repetier_8h.html#a2d25bcd37166cc98f0d823cdb8c553ef">uint8</a> osAnalogInputChannels[] <a class="code" href="u8glib__ex_8h.html#a75acaba9e781937468d0911423bc0c35">PROGMEM</a>;
<a name="l00327"></a>00327 <span class="keyword">extern</span> <a class="code" href="_repetier_8h.html#a2d25bcd37166cc98f0d823cdb8c553ef">uint8</a> <a class="code" href="_extruder_8cpp.html#a07a4ca15886903cf2fb4f1eaf8c159cd">osAnalogInputCounter</a>[<a class="code" href="_repetier_8h.html#a4791bfa40258d27fa714fff6d8e62a30" title="number of analog input signals. Normally 1 for each temperature sensor">ANALOG_INPUTS</a>];
<a name="l00328"></a>00328 <span class="keyword">extern</span> <a class="code" href="_repetier_8h.html#ad46b2ebcd4c426b06cda147ddc1001e7">uint</a> <a class="code" href="_extruder_8cpp.html#a384beae2dd995028fca6d9f4170b577c">osAnalogInputBuildup</a>[<a class="code" href="_repetier_8h.html#a4791bfa40258d27fa714fff6d8e62a30" title="number of analog input signals. Normally 1 for each temperature sensor">ANALOG_INPUTS</a>];
<a name="l00329"></a>00329 <span class="keyword">extern</span> <a class="code" href="_repetier_8h.html#a2d25bcd37166cc98f0d823cdb8c553ef">uint8</a> <a class="code" href="_extruder_8cpp.html#a74b358db2517ebe9a05df050f7a2b180">osAnalogInputPos</a>; <span class="comment">// Current sampling position</span>
<a name="l00330"></a>00330 <span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="_repetier_8h.html#ad46b2ebcd4c426b06cda147ddc1001e7">uint</a> <a class="code" href="_extruder_8cpp.html#a2b0e4706d5ae47ec0c077dd1481d036a">osAnalogInputValues</a>[<a class="code" href="_repetier_8h.html#a4791bfa40258d27fa714fff6d8e62a30" title="number of analog input signals. Normally 1 for each temperature sensor">ANALOG_INPUTS</a>];
<a name="l00331"></a>00331 <span class="keyword">extern</span> uint8_t <a class="code" href="motion_8cpp.html#a446bd741ad7766bcb66b61d127448157">pwm_pos</a>[<a class="code" href="_configuration_8h.html#a8cb1f491dd9270f6668ba7a5b0454799">NUM_EXTRUDER</a>+3]; <span class="comment">// 0-NUM_EXTRUDER = Heater 0-NUM_EXTRUDER of extruder, NUM_EXTRUDER = Heated bed, NUM_EXTRUDER+1 Board fan, NUM_EXTRUDER+2 = Fan</span>
<a name="l00332"></a>00332 <span class="preprocessor">#ifdef USE_ADVANCE</span>
<a name="l00333"></a>00333 <span class="preprocessor"></span><span class="preprocessor">#ifdef ENABLE_QUADRATIC_ADVANCE</span>
<a name="l00334"></a>00334 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="motion_8cpp.html#ac13098470e707fa98e8274e2fe1532e5">maxadv</a>;
<a name="l00335"></a>00335 <span class="preprocessor">#endif</span>
<a name="l00336"></a>00336 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="motion_8cpp.html#af30ccb099aa74e5ab14e18d157294f1a">maxadv2</a>;
<a name="l00337"></a>00337 <span class="keyword">extern</span> <span class="keywordtype">float</span> <a class="code" href="motion_8cpp.html#addae499e542db954fc7b0514113128ff">maxadvspeed</a>;
<a name="l00338"></a>00338 <span class="preprocessor">#endif</span>
<a name="l00339"></a>00339 <span class="preprocessor"></span>
<a name="l00340"></a>00340 
<a name="l00341"></a>00341 <span class="preprocessor">#include &quot;<a class="code" href="_extruder_8h.html">Extruder.h</a>&quot;</span>
<a name="l00342"></a>00342 
<a name="l00343"></a>00343 <span class="keywordtype">void</span> <a class="code" href="_repetier_8h.html#a5206a05e99816878d11fc057eeb3ea18">manage_inactivity</a>(uint8_t debug);
<a name="l00344"></a>00344 
<a name="l00345"></a>00345 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_repetier_8h.html#acb8c2930412c809a09ed3752e7e7e0dc">finishNextSegment</a>();
<a name="l00346"></a>00346 <span class="preprocessor">#if NONLINEAR_SYSTEM</span>
<a name="l00347"></a>00347 <span class="preprocessor"></span><span class="keyword">extern</span> uint8_t transformCartesianStepsToDeltaSteps(<span class="keywordtype">long</span> cartesianPosSteps[], <span class="keywordtype">long</span> deltaPosSteps[]);
<a name="l00348"></a>00348 <span class="preprocessor">#ifdef SOFTWARE_LEVELING</span>
<a name="l00349"></a>00349 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">void</span> calculatePlane(<span class="keywordtype">long</span> factors[], <span class="keywordtype">long</span> p1[], <span class="keywordtype">long</span> p2[], <span class="keywordtype">long</span> p3[]);
<a name="l00350"></a>00350 <span class="keyword">extern</span> <span class="keywordtype">float</span> calcZOffset(<span class="keywordtype">long</span> factors[], <span class="keywordtype">long</span> pointX, <span class="keywordtype">long</span> pointY);
<a name="l00351"></a>00351 <span class="preprocessor">#endif</span>
<a name="l00352"></a>00352 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00353"></a>00353 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_repetier_8h.html#a65a322bad41be18bfefa92002f0be2fa">linear_move</a>(<span class="keywordtype">long</span> steps_remaining[]);
<a name="l00354"></a>00354 <span class="preprocessor">#ifndef FEATURE_DITTO_PRINTING</span>
<a name="l00355"></a>00355 <span class="preprocessor"></span><span class="preprocessor">#define FEATURE_DITTO_PRINTING false</span>
<a name="l00356"></a>00356 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00357"></a>00357 <span class="preprocessor"></span><span class="preprocessor">#if FEATURE_DITTO_PRINTING &amp;&amp; NUM_EXTRUDER!=2</span>
<a name="l00358"></a>00358 <span class="preprocessor"></span><span class="preprocessor">#error Ditto printing requires exactly 2 extruder.</span>
<a name="l00359"></a>00359 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00360"></a>00360 <span class="preprocessor"></span>
<a name="l00361"></a>00361 
<a name="l00362"></a>00362 <span class="keyword">extern</span> <a class="code" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="code" href="motion_8cpp.html#adc903858a94689ba9ae8882a135b3f3b">previousMillisCmd</a>;
<a name="l00363"></a>00363 <span class="keyword">extern</span> <a class="code" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="code" href="motion_8cpp.html#ab70f53b8c69009326cad4be6edd3a1f0">maxInactiveTime</a>;
<a name="l00364"></a>00364 <span class="keyword">extern</span> <a class="code" href="_h_a_l_8h.html#ab14fc3b0e7b9535ec25836108ce96a45">millis_t</a> <a class="code" href="motion_8cpp.html#acfda5eefcb4f9723567641d4167a9582">stepperInactiveTime</a>;
<a name="l00365"></a>00365 
<a name="l00366"></a>00366 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_repetier_8h.html#a0764a6316281ac76f1e8fa8a07b0332e">setupTimerInterrupt</a>();
<a name="l00367"></a>00367 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_repetier_8h.html#a03240f7b400beb759384e548a1fba658">motorCurrentControlInit</a>();
<a name="l00368"></a>00368 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_commands_8cpp.html#ada9007f5c352e47dccd2756d2066bbd9">microstepInit</a>();
<a name="l00369"></a>00369 
<a name="l00370"></a>00370 <span class="preprocessor">#include &quot;<a class="code" href="_printer_8h.html">Printer.h</a>&quot;</span>
<a name="l00371"></a>00371 <span class="preprocessor">#include &quot;<a class="code" href="motion_8h.html">motion.h</a>&quot;</span>
<a name="l00372"></a>00372 <span class="keyword">extern</span> <span class="keywordtype">long</span> <a class="code" href="motion_8cpp.html#a758f659f15b3784c13d14aee2e89e6a2" title="Communication speed rate.">baudrate</a>;
<a name="l00373"></a>00373 <span class="preprocessor">#if OS_ANALOG_INPUTS&gt;0</span>
<a name="l00374"></a>00374 <span class="preprocessor"></span><span class="comment">// Get last result for pin x</span>
<a name="l00375"></a>00375 <span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="_repetier_8h.html#ad46b2ebcd4c426b06cda147ddc1001e7">uint</a> <a class="code" href="_extruder_8cpp.html#a2b0e4706d5ae47ec0c077dd1481d036a">osAnalogInputValues</a>[OS_ANALOG_INPUTS];
<a name="l00376"></a>00376 <span class="preprocessor">#endif</span>
<a name="l00377"></a>00377 <span class="preprocessor"></span>
<a name="l00378"></a>00378 <span class="preprocessor">#include &quot;<a class="code" href="_h_a_l_8h.html">HAL.h</a>&quot;</span>
<a name="l00379"></a>00379 
<a name="l00380"></a>00380 
<a name="l00381"></a>00381 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_extruder_8cpp.html#a80262161624db16ad488d66ed40012a1">counterPeriodical</a>;
<a name="l00382"></a>00382 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="_extruder_8cpp.html#a777e2a3aefbd82c1428f8ff4770460a1">executePeriodical</a>;
<a name="l00383"></a>00383 <span class="keyword">extern</span> uint8_t <a class="code" href="_extruder_8cpp.html#a4c75d15f049109d5954884fa06aea1bf">counter250ms</a>;
<a name="l00384"></a>00384 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_extruder_8cpp.html#a7b9f5bc67725449f737bb229c9c8cae9" title="Writes monitored temperatures.">writeMonitor</a>();
<a name="l00385"></a>00385 
<a name="l00386"></a>00386 
<a name="l00387"></a>00387 
<a name="l00388"></a>00388 <span class="preprocessor">#if SDSUPPORT</span>
<a name="l00389"></a>00389 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">char</span> tempLongFilename[<a class="code" href="_repetier_8h.html#a44a03c09095315ecc8926e18c325472c">LONG_FILENAME_LENGTH</a>+1];
<a name="l00390"></a>00390 <span class="keyword">extern</span> <span class="keywordtype">char</span> fullName[<a class="code" href="_repetier_8h.html#a44a03c09095315ecc8926e18c325472c">LONG_FILENAME_LENGTH</a>*<a class="code" href="_repetier_8h.html#a4f72bc2f610f4156f446d7cc00fab46c">SD_MAX_FOLDER_DEPTH</a>+<a class="code" href="_repetier_8h.html#a4f72bc2f610f4156f446d7cc00fab46c">SD_MAX_FOLDER_DEPTH</a>+1];
<a name="l00391"></a>00391 <span class="preprocessor">#define SHORT_FILENAME_LENGTH 14</span>
<a name="l00392"></a>00392 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_sd_fat_8h.html" title="SdFat class.">SdFat.h</a>&quot;</span>
<a name="l00393"></a>00393 
<a name="l00394"></a>00394 <span class="keyword">enum</span> LsAction {LS_SerialPrint,LS_Count,LS_GetFilename};
<a name="l00395"></a>00395 <span class="keyword">class </span>SDCard {
<a name="l00396"></a>00396 <span class="keyword">public</span>:
<a name="l00397"></a>00397   <a class="code" href="class_sd_fat.html" title="Integration class for the SdFat library.">SdFat</a> fat;
<a name="l00398"></a>00398   <span class="comment">//Sd2Card card; // ~14 Byte</span>
<a name="l00399"></a>00399   <span class="comment">//SdVolume volume;</span>
<a name="l00400"></a>00400   <span class="comment">//SdFile root;</span>
<a name="l00401"></a>00401   <span class="comment">//SdFile dir[SD_MAX_FOLDER_DEPTH+1];</span>
<a name="l00402"></a>00402   <a class="code" href="class_sd_file.html" title="SdBaseFile with Print.">SdFile</a> file;
<a name="l00403"></a>00403   uint32_t filesize;
<a name="l00404"></a>00404   uint32_t sdpos;
<a name="l00405"></a>00405   <span class="comment">//char fullName[13*SD_MAX_FOLDER_DEPTH+13]; // Fill name</span>
<a name="l00406"></a>00406   <span class="keywordtype">char</span> *shortname; <span class="comment">// Pointer to start of filename itself</span>
<a name="l00407"></a>00407   <span class="keywordtype">char</span> *pathend; <span class="comment">// File to char where pathname in fullname ends</span>
<a name="l00408"></a>00408   <span class="keywordtype">bool</span> sdmode;  <span class="comment">// true if we are printing from sd card</span>
<a name="l00409"></a>00409   <span class="keywordtype">bool</span> sdactive;
<a name="l00410"></a>00410   <span class="comment">//int16_t n;</span>
<a name="l00411"></a>00411   <span class="keywordtype">bool</span> savetosd;
<a name="l00412"></a>00412   <a class="code" href="class_sd_base_file.html" title="Base class for SdFile with Print and C++ streams.">SdBaseFile</a> parentFound;
<a name="l00413"></a>00413 
<a name="l00414"></a>00414   SDCard();
<a name="l00415"></a>00415   <span class="keywordtype">void</span> initsd();
<a name="l00416"></a>00416   <span class="keywordtype">void</span> writeCommand(<a class="code" href="class_g_code.html">GCode</a> *code);
<a name="l00417"></a>00417   <span class="keywordtype">bool</span> selectFile(<span class="keywordtype">char</span> *filename,<span class="keywordtype">bool</span> silent=<span class="keyword">false</span>);
<a name="l00418"></a>00418   <span class="keywordtype">void</span> mount();
<a name="l00419"></a>00419   <span class="keywordtype">void</span> unmount();
<a name="l00420"></a>00420   <span class="keywordtype">void</span> startPrint();
<a name="l00421"></a>00421   <span class="keywordtype">void</span> pausePrint(<span class="keywordtype">bool</span> intern = <span class="keyword">false</span>);
<a name="l00422"></a>00422   <span class="keywordtype">void</span> continuePrint(<span class="keywordtype">bool</span> intern=<span class="keyword">false</span>);
<a name="l00423"></a>00423   <span class="keywordtype">void</span> stopPrint();
<a name="l00424"></a>00424   <span class="keyword">inline</span> <span class="keywordtype">void</span> setIndex(uint32_t  newpos) { <span class="keywordflow">if</span>(!sdactive) <span class="keywordflow">return</span>; sdpos = newpos;file.seekSet(sdpos);}
<a name="l00425"></a>00425   <span class="keywordtype">void</span> printStatus();
<a name="l00426"></a>00426   <span class="keywordtype">void</span> ls();
<a name="l00427"></a>00427   <span class="keywordtype">void</span> startWrite(<span class="keywordtype">char</span> *filename);
<a name="l00428"></a>00428   <span class="keywordtype">void</span> deleteFile(<span class="keywordtype">char</span> *filename);
<a name="l00429"></a>00429   <span class="keywordtype">void</span> finishWrite();
<a name="l00430"></a>00430   <span class="keywordtype">char</span> *createFilename(<span class="keywordtype">char</span> *buffer,<span class="keyword">const</span> <a class="code" href="structdirectory_entry.html" title="FAT short directory entry.">dir_t</a> &amp;p);
<a name="l00431"></a>00431   <span class="keywordtype">void</span> makeDirectory(<span class="keywordtype">char</span> *filename);
<a name="l00432"></a>00432   <span class="keywordtype">bool</span> showFilename(<span class="keyword">const</span> uint8_t *name);
<a name="l00433"></a>00433   <span class="keywordtype">void</span> automount();
<a name="l00434"></a>00434 <span class="preprocessor">#ifdef GLENN_DEBUG</span>
<a name="l00435"></a>00435 <span class="preprocessor"></span>  <span class="keywordtype">void</span> writeToFile();
<a name="l00436"></a>00436 <span class="preprocessor">#endif</span>
<a name="l00437"></a>00437 <span class="preprocessor"></span><span class="keyword">private</span>:
<a name="l00438"></a>00438   uint8_t lsRecursive(<a class="code" href="class_sd_base_file.html" title="Base class for SdFile with Print and C++ streams.">SdBaseFile</a> *parent,uint8_t level,<span class="keywordtype">char</span> *findFilename);
<a name="l00439"></a>00439  <span class="comment">// SdFile *getDirectory(char* name);</span>
<a name="l00440"></a>00440 };
<a name="l00441"></a>00441 
<a name="l00442"></a>00442 <span class="keyword">extern</span> SDCard sd;
<a name="l00443"></a>00443 <span class="preprocessor">#endif</span>
<a name="l00444"></a>00444 <span class="preprocessor"></span>
<a name="l00445"></a>00445 <span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keywordtype">int</span> <a class="code" href="motion_8cpp.html#aa9d0e229ec10a7a98c224f60d88fe410">waitRelax</a>; <span class="comment">// Delay filament relax at the end of print, could be a simple timeout</span>
<a name="l00446"></a>00446 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="_repetier_8h.html#adf6a7cb291c016fdbefd2e795f610ae0">updateStepsParameter</a>(<a class="code" href="class_print_line.html">PrintLine</a> *p<span class="comment">/*,uint8_t caller*/</span>);
<a name="l00447"></a>00447 
<a name="l00448"></a>00448 
<a name="l00449"></a>00449 <span class="preprocessor">#if NONLINEAR_SYSTEM</span>
<a name="l00450"></a>00450 <span class="preprocessor"></span><span class="preprocessor">#define NUM_AXIS 4</span>
<a name="l00451"></a>00451 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00452"></a>00452 <span class="preprocessor"></span>
<a name="l00453"></a><a class="code" href="_repetier_8h.html#a6388870e639eee9c0a69446876f1f8cc">00453</a> <span class="preprocessor">#define STR(s) #s</span>
<a name="l00454"></a><a class="code" href="_repetier_8h.html#a03943706e48069237cd57f2d35ca987e">00454</a> <span class="preprocessor"></span><span class="preprocessor">#define XSTR(s) STR(s)</span>
<a name="l00455"></a>00455 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_commands_8h.html">Commands.h</a>&quot;</span>
<a name="l00456"></a>00456 <span class="preprocessor">#include &quot;<a class="code" href="_eeprom_8h.html">Eeprom.h</a>&quot;</span>
<a name="l00457"></a>00457 
<a name="l00458"></a>00458 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_repetier_8h.html">Repetier.h</a>      </li>

    <li class="footer">Generated on Mon Dec 30 2013 18:53:02 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
